package com.cz.rabbitmq;


import com.cz.rabbitmq.service.MsgService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SendApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext("com.cz.rabbitmq");
        MsgService msgService = applicationContext.getBean(MsgService.class);
        msgService.sendMsg();
    }
}
